from book.models import BookInfo, PeopleInfo
book = BookInfo(
    name='Python Web(Django框架)',
    pub_date='2024-12-12'
)
book.save()

BookInfo.objects.create(
    name='Python Web(Flask框架)',
    pub_date='2025-2-14'
)

book = BookInfo.objects.get(id=5)
book.name = 'Python Web'
book.save()

BookInfo.objects.filter(id=6).update(name='Python Web(Flask框架)2')

book = BookInfo.objects.get(id=6)
book.delete()

BookInfo.objects.filter(id=5).delete()